package priv.pront.code.mati.province.comp;

import java.util.Scanner;

/**
 * @Description:
 * @Author: pront
 * @Time:2023-11-18 16:03
 */
public class Main11 {

    static String s2, s1;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        s1 = scanner.next();
        s2 = scanner.next();
        s1 = s1.replaceAll("!", "");
        if (s1.contains(s2)) {
            System.out.println("True");
        }else{
            System.out.println("False");
        }
//        String[] s = s2.split("");
//        String[] ss = s1.split("");
//        int j = 0;
//        for (int i = 0; i < ss.length; i++) {
//            if (ss[i].equals(s[j])) {
//                j++;
//                if(j == s.length) break;
//            }
//        }
//        if(j == s.length){
//            System.out.println("True");
//        }else{
//            System.out.println("False");
//        }

    }
}
